package com.roadjava.GDOUGym.convert;

import com.roadjava.GDOUGym.bean.dto.EquipmentDTO;
import com.roadjava.GDOUGym.bean.dto.EquipmentRentDTO;
import com.roadjava.GDOUGym.bean.entity.EquipmentDO;
import com.roadjava.GDOUGym.bean.entity.EquipmentRentDO;
import org.mapstruct.Mapper;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Mapper(componentModel = "spring")
public abstract class EquipmentRentConvert {
    @Resource
    private HttpServletRequest httpServletRequest;

    public abstract EquipmentRentDO dto2do(EquipmentRentDTO dto);

    public abstract EquipmentRentDTO do2dto(EquipmentRentDO equipmentRentDO);

    public abstract List<EquipmentRentDTO> dos2dtos(List<EquipmentRentDO> equipmentRentDOS);
}
